package com.bzzoneit.newsys.entity.admin;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.bzzoneit.newsys.utils.entity.BaseEntity;

public class User extends BaseEntity implements Serializable {
	private static final long serialVersionUID = -5268898209820709788L;
	

	private String name;
	private String password;
	private Date createDate;
	private List<Role> roles;
	private String email;

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public List<Role> getRoles() {
		return roles;
	}

	public void setRoles(List<Role> roles) {
		this.roles = roles;
	}

	@Override
	public String toString() {
		return "User [name=" + name + ", password=" + password
				+ ", createDate=" + createDate + ", getName()=" + getName()
				+ ", getPassword()=" + getPassword() + ", getCreateDate()="
				+ getCreateDate() + "]";
	}
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public Date getCreateDate() {
		return createDate;
	}
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
}
